﻿using NewsPortal.Domain.PostEntities;
using System.Data.Entity.ModelConfiguration;

namespace NewsPortal.DataAccess.POCO.Config
{
    public class CommentConfig: EntityTypeConfiguration<Comment>
    {
        public CommentConfig()
        {
            this.HasKey(c => c.Id);
            this.Property(p => p.SenderName).IsRequired().HasMaxLength(100);
            this.Property(p => p.SenderEmail).IsRequired();
        }
    }
}
